home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 426-450 / disk_443 / dice / dice.lzh / include / time.h < prev    next >
C/C++ Source or Header  |  1990-08-02  |  949b  |  45 lines

  1.  
  2. /*
  3.  *  TIME.H
  4.  *
  5.  *  (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  6.  */
  7.  
  8. #ifndef _TIME_H
  9. #define _TIME_H
  10.  
  11. #ifndef _STDDEF_H
  12. #include <stddef.h>
  13. #endif
  14.  
  15. typedef unsigned long clock_t;
  16. typedef unsigned long time_t;
  17.  
  18. struct tm {
  19.     int tm_sec;     /*    0-59    */
  20.     int tm_min;     /*    0-59    */
  21.     int tm_hour;    /*    0-23    */
  22.     int tm_mday;    /*    1-31    */
  23.     int tm_mon;     /*    0-11    */
  24.     int tm_year;    /*    n+1900    */
  25.     int tm_wday;    /*    (sun)0-6*/
  26.     int tm_yday;    /*    0-366    */
  27.     int tm_isdst;   /*    daylight svings time flag */
  28. };
  29.  
  30. #define CLK_TCK     50
  31.  
  32. extern char *asctime(const struct tm *);
  33. extern clock_t clock(void);
  34. extern char *ctime(const time_t *);
  35. extern double difftime(time_t, time_t);
  36. extern struct tm *gmtime(const time_t *);
  37. extern struct tm *localtime(const time_t *);
  38. extern time_t mktime(struct tm *);
  39. extern size_t strftime(char *, size_t, const char *, const struct tm *);
  40. extern time_t time(time_t *);
  41.  
  42. #endif
  43.  
  44.  
  45.